package com.example.blog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.blog.mapper.WebSiteMapper;
import com.example.blog.pojo.WebSite;
import com.example.blog.service.WebSiteService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class WebSiteServiceImpl extends ServiceImpl<WebSiteMapper, WebSite> implements WebSiteService {
    @Resource
    private WebSiteMapper webSiteMapper;
    @Override
    public String getTitleByUrl(String webUrl) {
        return webSiteMapper.getTitleByUrl(webUrl).getWebTitle();
    }
}
